package top.jacktgq.utils;

import java.io.File;

/**
 * @Author CandyWall
 * @Date 2021/6/21--14:45
 * @Description
 */
public class Email {
    private String from; //发件人邮箱号
    private String auth_code; //发件人邮箱授权码
    private String email_host = "smtp.163.com"; //收件人邮箱主机：网易邮箱---smtp.163.com，QQ邮箱---smtp.qq.com
    private String to; //收件人邮箱号
    private String subject; //邮件主题
    private String text; //邮件正文
    private File attachment_file; //附件地址

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getAuth_code() {
        return auth_code;
    }

    public void setAuth_code(String auth_code) {
        this.auth_code = auth_code;
    }

    public String getEmail_host() {
        return email_host;
    }

    public void setEmail_host(String email_host) {
        this.email_host = email_host;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public File getAttachment_file() {
        return attachment_file;
    }

    public void setAttachment_file(File attachment_file) {
        this.attachment_file = attachment_file;
    }

    @Override
    public String toString() {
        return "Email{" +
                "from='" + from + '\'' +
                ", auth_code='" + auth_code + '\'' +
                ", email_host='" + email_host + '\'' +
                ", to='" + to + '\'' +
                ", subject='" + subject + '\'' +
                ", text='" + text + '\'' +
                ", attachment_file=" + attachment_file +
                '}';
    }
}
